Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Writing the supporting procedures for the UI event
Now you must edit the customersuper.p procedure to add the internal procedure to be executed when the UI event occurs so that
CreditLimitLeavechecks first to see if the CreditLimit field has been modified. First create a support function, calledwidgetModified, to take care of that check. This function checks the Progress 4GLMODIFIEDattribute for the field and returns true or false accordingly, as shown:
The next step is to code the
CreditLimitLeaveprocedure itself. In this example, the same condition is duplicated from therowDisplayprocedure. Obviously, in a properly completed example this code should be pulled out into a separate internal procedure called from both places, as shown:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |